package com.csun.cmny.provider.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "cn_omc_chongming_dwr_medicalrecord")
public class ChongmingDoctorWorkMedicalRecord {

    /**
     * 病程记录ID
     */
    @Column(name = "medical_record_id")
    private Long medicalRecordId;

    /**
     * 病案号ID
     */
    @Column(name = "medical_record_no")
    private String medicalRecordNo;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 老人ID
     */
    @Column(name = "oldman_id")
    private String oldmanId;

    /**
     * 病程记录
     */
    @Column(name = "medical_record")
    private String medicalRecord;

    /**
     * 初步诊断
     */
    @Column(name = "diagnosis")
    private String diagnosis;

    /**
     * 诊疗计划
     */
    @Column(name = "plan")
    private String plan;

    /**
     * 日期
     */
    @Column(name = "medical_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date medicalTime;

    /**
     * 医生签名
     */
    @Column(name = "doctor_name")
    private String doctorName;

    /**
     * 医生ID
     */
    @Column(name = "doctor_id")
    private String doctorId;

}
